package com.itheima.health.service.impl;

import com.itheima.health.dao.OrderSetDao;
import com.itheima.health.pojo.entity.OrderSetting;
import com.itheima.health.service.OrderSetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Service
public class OrderSetServiceImpl implements OrderSetService {

    @Autowired
    private OrderSetDao orderSetDao;

    @Override
    public void insertBatch(List<OrderSetting> extractedData) {
        orderSetDao.insertBatch(extractedData);
    }

    @Override
    public List<OrderSetting> getByYearAndMonth(Integer month, Integer year) {
        List<OrderSetting> extractedData = orderSetDao.getByYearAndMonth(month,year);
        extractedData.forEach(e->{

        });
        return orderSetDao.getByYearAndMonth(month,year);
    }
}
